package com.bdult.vh.service;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bdult.vh.dao.OrderDAO;

@Service
public class OrderService {
	@Autowired
	private OrderDAO orderDAO;
	
	public HashMap<String, Object> getCartList(String cstmno) {
		return orderDAO.getCartList(cstmno);
	}
	
	public HashMap<String, Object> getCartOrderList(String cstmno) {
		return orderDAO.getCartOrderList(cstmno);
	}
	
	public HashMap<String, Object> getWishList(String cstmno) {
		return orderDAO.getWishList(cstmno);
	}
	
	public ArrayList<HashMap<String, String>> cartCalc(String cstmno) {
		return orderDAO.cartCalc(cstmno);
	}
	
	public int delCart(HashMap<String, String> map) {
		return orderDAO.delCart(map);
	}
	
	public int insertCart(Map<String, Object> paramMap) {
		return orderDAO.insertCart(paramMap);
	}
	
	public int updateCart(Map<String, Object> paramMap) {
		return orderDAO.updateCart(paramMap);
	}
	
	public int insertWish(Map<String, Object> paramMap) {
		return orderDAO.insertWish(paramMap);
	}
	
	public int updateWish(Map<String, Object> paramMap) {
		return orderDAO.updateWish(paramMap);
	}
	
	public ArrayList<HashMap<String, Object>> myOrderList(String cstmno) {
		return orderDAO.myOrderList(cstmno);
	}
	
	
	
	//2014-04-27 김진영과장님 작업
	public HashMap<String, Object> getCouponTotal(String cstmno) {
		return orderDAO.getCouponTotal(cstmno);
	}
	
	public ArrayList<HashMap<String, Object>> getCouponList(HashMap<String, Object> pMap) {
		return orderDAO.getCouponList(pMap);
	}
	
	
	//###### 2014-04-30 심윤 추가 : 결제관련
	public int insertPay(Map<String, Object> paramMap) {
		return orderDAO.insertPay(paramMap);
	}
	
	public int insertPayCashReceipt(Map<String, Object> paramMap) {
		return orderDAO.insertPayCashReceipt(paramMap);
	}
	
	public int insertOrder(Map<String, Object> paramMap) {
		return orderDAO.insertOrder(paramMap);
	}
	
	public int insertOrderDetail(Map<String, Object> paramMap) {
		return orderDAO.insertOrderDetail(paramMap);
	}
	//###### 2014-04-30 심윤 추가 : 결제관련
	
	//###### 2014-04-30 심윤 추가 : 재고관련
	public HashMap<String, Object> getStock(Map<String, Object> paramMap) {
		return orderDAO.getStock(paramMap);
	}
	
	public int insertStock(Map<String, Object> paramMap) {
		return orderDAO.insertStock(paramMap);
	}
	
	public int updateDlvrsrvSR01(Map<String, Object> paramMap) {
		return orderDAO.updateDlvrsrvSR01(paramMap);
	}
	
	public int updateDlvrsrvSR02(Map<String, Object> paramMap) {
		return orderDAO.updateDlvrsrvSR02(paramMap);
	}
	
	public int updateDlvrsrvSR03(Map<String, Object> paramMap) {
		return orderDAO.updateDlvrsrvSR03(paramMap);
	}
	
	public int updateDlvrsrvSR04(Map<String, Object> paramMap) {
		return orderDAO.updateDlvrsrvSR04(paramMap);
	}
	
	public int updateDlvrsrvSR05(Map<String, Object> paramMap) {
		return orderDAO.updateDlvrsrvSR05(paramMap);
	}
	
	public int updateSaleState(Map<String, Object> paramMap) {
		return orderDAO.updateSaleState(paramMap);
	}
	
	public HashMap<String, Object> getOnSaleState(String PRDCD) {
		return orderDAO.getOnSaleState(PRDCD);
	}
	
	public HashMap<String, Object> getSaleState(String PRDCD) {
		return orderDAO.getSaleState(PRDCD);
	}
	
	public int updateSaleStatePdt(Map<String, Object> paramMap) {
		return orderDAO.updateSaleStatePdt(paramMap);
	}
	//###### 2014-04-30 심윤 추가 : 재고관련
	
	//###### 2014-04-30 심윤 추가 : 쿠폰관련
	public HashMap<String, Object> getCouponType(String PRDCD) {
		return orderDAO.getCouponType(PRDCD);
	}
	
	public ArrayList<HashMap<String, Object>> getCouponApply23478(HashMap<String, Object> htData) {
		return orderDAO.getCouponApply23478(htData);
	}
	
	public ArrayList<HashMap<String, Object>> getCouponApply56111213(HashMap<String, Object> htData) {
		return orderDAO.getCouponApply56111213(htData);
	}
	
	public int insertCouponUsed(Map<String, Object> paramMap) {
		return orderDAO.insertCouponUsed(paramMap);
	}
	
	public int updateUseCoupon(Map<String, Object> paramMap) {
		return orderDAO.updateUseCoupon(paramMap);
	}
	//###### 2014-04-30 심윤 추가 : 쿠폰관련
	
	//###### 2014-04-30 심윤 추가 : 적립금관련
	public HashMap<String, Object> getPointAcc(String CSTMGR) {
		return orderDAO.getPointAcc(CSTMGR);
	}
	
	public int updateUsePoint(Map<String, Object> paramMap) {
		return orderDAO.updateUsePoint(paramMap);
	}
	
	public ArrayList<HashMap<String, Object>> getOrderDetail(String ORDNO) {
		return orderDAO.getOrderDetail(ORDNO);
	}
	
	public int updateOrderDetail(Map<String, Object> paramMap) {
		return orderDAO.updateOrderDetail(paramMap);
	}
	//###### 2014-04-30 심윤 추가 : 적립금관련
	
	
	//###### 2014-05-01 심윤 추가 : 주문서 과거배송지
	public HashMap<String, Object> getAddressPastOrder(String CSTMNO) {
		return orderDAO.getAddressPastOrder(CSTMNO);
	}
	//###### 2014-05-01 심윤 추가 : 주문서 과거배송지
	
	
	//###### 2014-05-01 심윤 추가 : 우편번호
	public ArrayList<HashMap<String, String>> selectZipcodeList(String DONG) {
		return orderDAO.selectZipcodeList(DONG);
	}
	//###### 2014-05-01 심윤 추가 : 우편번호
	
	
	//###### 2014-05-01 심윤 추가 : 주문완료
	public HashMap<String, String> selectOrderComplete(String ORDNO) {
		return orderDAO.selectOrderComplete(ORDNO);
	}
	//###### 2014-05-01 심윤 추가 : 주문완료
	
	
	//###### 2014-05-03 심윤 추가 : 주문관련
	public ArrayList<HashMap<String, Object>> selectOrderCart(Map<String, Object> paramMap) {
		return orderDAO.selectOrderCart(paramMap);
	}
	
	public ArrayList<HashMap<String, Object>> selectOrderGiftCoupon(int PURRSTCPRC) {
		return orderDAO.selectOrderGiftCoupon(PURRSTCPRC);
	}
	
	public ArrayList<HashMap<String, Object>> getOrderCardSale(Map<String, Object> paramMap) {
		return orderDAO.getOrderCardSale(paramMap);
	}	
	//###### 2014-05-03 심윤 추가 : 주문관련
	
	public HashMap<String, Object> getOrderSingle(String ORDNO) {
		return orderDAO.getOrderSingle(ORDNO);
	}
	
	public ArrayList<HashMap<String, Object>> getMyOrderSingle(Map<String, Object> paramMap) {
		return orderDAO.getMyOrderSingle(paramMap);
	}
	
	public String getAccNoYn(String ORDNO) {
		return orderDAO.getAccNoYn(ORDNO);
	}
	
	public HashMap<String, Object> getApprvCancelPrc(String ORDNO) {
		return orderDAO.getApprvCancelPrc(ORDNO);
	}
	
	
	
}	
